package com.example.yin.dao;

import com.example.yin.domain.Article;
import com.example.yin.domain.Subscribe;
import com.example.yin.vo.ArticleVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author
 * @description
 * @createDate 2023/6/26
 */

@Repository
public interface ArticleMapper {

    Article selectByPrimaryKey(Integer article_id);
    List<Article> getList(Article article);
    int delete(Integer article_id);

    //插入
    int insert(Article article);
    int updateByPrimaryKey(Article article);

    //更新歌曲图片
    int updateArticlePic(Article record);
    int subscribeUser(Subscribe subscribe);

    List<Article> getSubArticle(int userId);

    List<ArticleVO> getListVO(ArticleVO articleVO);


}
